Optimal. Leaf size=79 \[ \frac {B n \text {Li}_2\left (\frac {b c-a d}{d (a+b x)}+1\right )}{b}-\frac {\log \left (-\frac {b c-a d}{d (a+b x)}\right ) \left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 87, normalized size of antiderivative = 1.10, number of steps used = 7, number of rules used = 6, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.194, Rules used = {6742, 2488, 2411, 2343, 2333, 2315} \[ \frac {B n \text {PolyLog}\left (2,\frac {b c-a d}{d (a+b x)}+1\right )}{b}+\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2315
Rule 2333
Rule 2343
Rule 2411
Rule 2488
Rule 6742
Rubi steps
\begin {align*} \int \frac {A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x} \, dx &=\int \left (\frac {A}{a+b x}+\frac {B \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x}\right ) \, dx\\ &=\frac {A \log (a+b x)}{b}+B \int \frac {\log \left (e (a+b x)^n (c+d x)^{-n}\right )}{a+b x} \, dx\\ &=\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {(B (b c-a d) n) \int \frac {\log \left (-\frac {b c-a d}{d (a+b x)}\right )}{(a+b x) (c+d x)} \, dx}{b}\\ &=\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {(B (b c-a d) n) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {b c-a d}{d x}\right )}{x \left (\frac {b c-a d}{b}+\frac {d x}{b}\right )} \, dx,x,a+b x\right )}{b^2}\\ &=\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {(B (b c-a d) n) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {(b c-a d) x}{d}\right )}{\left (\frac {b c-a d}{b}+\frac {d}{b x}\right ) x} \, dx,x,\frac {1}{a+b x}\right )}{b^2}\\ &=\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}-\frac {(B (b c-a d) n) \operatorname {Subst}\left (\int \frac {\log \left (-\frac {(b c-a d) x}{d}\right )}{\frac {d}{b}+\frac {(b c-a d) x}{b}} \, dx,x,\frac {1}{a+b x}\right )}{b^2}\\ &=\frac {A \log (a+b x)}{b}-\frac {B \log \left (-\frac {b c-a d}{d (a+b x)}\right ) \log \left (e (a+b x)^n (c+d x)^{-n}\right )}{b}+\frac {B n \text {Li}_2\left (\frac {b (c+d x)}{d (a+b x)}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 129, normalized size = 1.63 \[ \frac {2 A \log (a+b x)-2 B \log \left (\frac {a d-b c}{d (a+b x)}\right ) \left (\log \left (e (a+b x)^n (c+d x)^{-n}\right )+n \log \left (\frac {b (c+d x)}{b c-a d}\right )\right )+2 B n \text {Li}_2\left (\frac {d (a+b x)}{a d-b c}\right )-B n \log ^2\left (\frac {a d-b c}{d (a+b x)}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.99, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A}{b x + a}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A}{b x + a}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 1.24, size = 523, normalized size = 6.62 \[ -\frac {i \pi B \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \ln \left (b x +a \right )}{2 b}+\frac {i \pi B \,\mathrm {csgn}\left (i e \right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2} \ln \left (b x +a \right )}{2 b}-\frac {i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \ln \left (b x +a \right )}{2 b}+\frac {i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2} \ln \left (b x +a \right )}{2 b}+\frac {i \pi B \,\mathrm {csgn}\left (i \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2} \ln \left (b x +a \right )}{2 b}-\frac {i \pi B \mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3} \ln \left (b x +a \right )}{2 b}+\frac {i \pi B \,\mathrm {csgn}\left (i \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right ) \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{2} \ln \left (b x +a \right )}{2 b}-\frac {i \pi B \mathrm {csgn}\left (i e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )^{3} \ln \left (b x +a \right )}{2 b}+\frac {B n \ln \left (\frac {-a d +b c +\left (b x +a \right ) d}{-a d +b c}\right ) \ln \left (b x +a \right )}{b}+\frac {B n \dilog \left (\frac {-a d +b c +\left (b x +a \right ) d}{-a d +b c}\right )}{b}+\frac {B \ln \relax (e ) \ln \left (b x +a \right )}{b}-\frac {B \ln \left (\left (d x +c \right )^{n}\right ) \ln \left (b x +a \right )}{b}+\frac {A \ln \left (b x +a \right )}{b}+\frac {B \ln \left (\left (b x +a \right )^{n}\right )^{2}}{2 b n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ B {\left (\frac {\log \left (b x + a\right ) \log \left ({\left (b x + a\right )}^{n}\right ) - \log \left (b x + a\right ) \log \left ({\left (d x + c\right )}^{n}\right )}{b} + \int \frac {b d x \log \relax (e) + b c \log \relax (e) - {\left (b c n - a d n\right )} \log \left (b x + a\right )}{b^{2} d x^{2} + a b c + {\left (b^{2} c + a b d\right )} x}\,{d x}\right )} + \frac {A \log \left (b x + a\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )}{a+b\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B \log {\left (e \left (a + b x\right )^{n} \left (c + d x\right )^{- n} \right )}}{a + b x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________